Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash because "Stop Recording" could be pressed twice #688

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

albertvaka
Copy link
Contributor

Disable the stop button as soon as it is pressed instead of waiting to do it in the recordingStopped function, so it can't be pressed again which caused a crash. The recordingStopped function isn't immediately called after pressing stop because perf can take a while to finish after it is asked to terminate (eg: if debuginfod is enabled and has to download symbols, or if the trace is very big).

Disable the stop button as soon as it is pressed instead of waiting to do it in the `recordingStopped` function, so it can't be pressed again which caused a crash. The `recordingStopped` function isn't immediately called after pressing stop because perf can take a while to finish after it is asked to terminate (eg: if debuginfod is enabled and has to download symbols, or if the trace is very big).
Copy link
Member

@milianw milianw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks

@albertvaka
Copy link
Contributor Author

I don't have superpowers to merge, though 😄

@milianw
Copy link
Member

milianw commented Dec 23, 2024

hm the test failures look unrelated to the patch here, maybe something I can investigate over the holidays...

thanks Albert!

@milianw milianw merged commit 7b4802a into KDAB:master Dec 23, 2024
5 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants